package colopl.http.service.bean;

import java.io.Serializable;

public class PlantBlock implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -1563278412231404782L;

    /**
     * フィールド番号（0〜9）
     */
    private int serial = 0;
    
    private int x = 0;
    
    private int y = 0;
    
    private int x2 = 0;
    
    private int y2 = 0;
    
    /**
     * 0:空き地
     * 1:農場
     * 2:木
     * 3:貯水池
     * 4:ミサイル
     * 5:避石針
     * 6:レーダー
     * 7:土地
     */
    private int action = 0;

    public int getSerial() {
        return serial;
    }

    public void setSerial(int serial) {
        this.serial = serial;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getX2() {
        return x2;
    }

    public void setX2(int x2) {
        this.x2 = x2;
    }

    public int getY2() {
        return y2;
    }

    public void setY2(int y2) {
        this.y2 = y2;
    }

    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }

    @Override
    public String toString() {
        return "PlantBlock [serial=" + serial + ", x=" + x + ", y=" + y
                + ", x2=" + x2 + ", y2=" + y2 + ", action=" + action + "]";
    }
    
}
